import request from "@/util/request";
import {post} from "axios";

export default {
    //条件查询带分页
    search(page,pageSize,data){
        return request({
            url:`/user/search/${page}/${pageSize}`,
            method:"post",
            data
        })
    },
    //保存读者
    save(url,method,data){
        return request({
            url,
            method,
            data
        })
    },
    //删除读者
    delete(ids){
        return request({
            url:`/user/delete/${ids}`,
            method:"delete"
        })
    },
}
